package com.ux.example
{
	import com.ux.control.BasicParticle;
	import com.ux.manager.StageManager;
	
	import flash.display.BitmapData;
	import flash.display.Sprite;
	import flash.text.TextField;
	import flash.text.TextFieldAutoSize;
	import flash.text.TextFormat;
	import flash.utils.Timer;
	
	
	[SWF (frameRate="36", height="500", width="500", backgroundColor="0x000000" ) ]
	public class ParticleTest extends Sprite
	{
		
		private var p : BasicParticle;
		
		public function ParticleTest()
		{
			super();
			StageManager.stage = stage;
			
			p = new BasicParticle();
			addChild( p );
		}
		
		
		private function makeBitmapData( _txt:String ):BitmapData
		{
			var tf:TextField = new TextField;
			tf.defaultTextFormat = new TextFormat("",20,0xFFFFFF);
			tf.autoSize = TextFieldAutoSize.LEFT;
			tf.text = _txt;
			
			var textCanvas:BitmapData;
			textCanvas = new BitmapData(tf.textWidth,tf.textHeight,false,0x000000);
			textCanvas.draw(tf);
			
			return textCanvas;
		}
		
	}
}